package com.xlhj.boot.webservice.ws.server.service.impl;

import com.xlhj.boot.webservice.ws.api.entity.UserInfo;
import com.xlhj.boot.webservice.ws.api.service.UserInfoService;
import org.springframework.stereotype.Service;

import javax.jws.WebService;

/**
 * @Author: caijliu
 * @Date: 06/12/2021 11:47
 * @Description TODO
 * @Vsersion: 0.0.1
 */
@Service
@WebService(serviceName = "userInfoService", targetNamespace = "http://service.api.ws.webservice.boot.xlhj.com/", endpointInterface = "com.xlhj.boot.webservice.ws.api.service.UserInfoService")
public class UserInfoServiceImpl implements UserInfoService {
    @Override
    public void saveUserInfo(UserInfo userInfo) {
        System.out.println("保存用户信息成功" + userInfo.toString());
    }

    @Override
    public UserInfo getUserInfoById(Long id) {
        return UserInfo.builder().id(1L).username("zhangsan").password("123456").build();
    }
}
